package cn.zebra.dev.member.module.address.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotBlank;
import java.math.BigDecimal;

/**
 * @author runnable@sina.cn
 */
@Getter
@Setter
@ToString
public class MemberAddressVO {

    @ApiModelProperty("收件人")
    @NotBlank(message = "收件人不能为空!")
    private String recipientName;

    @ApiModelProperty("手机号")
    @NotBlank(message = "手机号不能为空!")
    private String phone;

    @ApiModelProperty("省名称")
    @NotBlank(message = "请选择省!")
    private String province;

    @ApiModelProperty("市名称")
    @NotBlank(message = "请选择市")
    private String city;

    @ApiModelProperty("县/区名称")
    @NotBlank(message = "请选择县/区")
    private String area;

    @ApiModelProperty("详细地址")
    @NotBlank(message = "详细地址不允许为空!")
    private String addressInfo;

    @ApiModelProperty("经度")
    private BigDecimal longitude;

    @ApiModelProperty("纬度")
    private BigDecimal latitude;

    @ApiModelProperty("是否默认")
    private Boolean defaultFlag = false;
}
